package com.twu.biblioteca.menu;

import com.twu.biblioteca.*;

public class QuitMenuItem implements MenuItem {
    @Override
    public String getName() {
        return "Quit Biblioteca";
    }

    @Override
    public String getMnemonic() {
        return "q";
    }

    @Override
    public PostMenuItemAction execute(Library library, UserIO io, UserRepository repository) {
        return PostMenuItemAction.Quit;
    }

    @Override
    public boolean shouldDisplay(User currentUser) {
        return true;
    }

    @Override
    public int getPriority() {
        return MenuItem.PRIORITY_LAST;
    }
}
